package com.example.demo.entity;

import org.springframework.data.annotation.Id;
import java.sql.Date;

/**
 * @Author: yucs
 * @Date: 2021/8/30 10:53
 * Admin和user的父类，用来辅助shiro权限验证
 */
public class Person {
    @Id
    protected Long id;
    protected String password;
    /**
     * 区分角色
     * 1为管理员 0为普通用户
     */
    protected Byte role;
    protected String founder;
    protected Date foundTime;
    protected String updater;
    protected Date updateTime;

    public Byte getRole() {
        return role;
    }

    public Long getId(){return id;}
}
